home *** CD-ROM | disk | FTP | other *** search
- # Jedi Knight Missions Cog Script
- #
- # thing_proj_image.cog
- #
- # Cog to manage informing the engine of the creation
- # and destruction of a force projection dummy.
- #
- # [RF]
- #
- # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
- # ==========================================================
-
- symbols
-
- message created
- message removed
-
- end
-
- # ==========================================================
-
- code
-
- created:
- // Tell the ai to start worrying about this thing.
- if (!IsMulti())
- aiSetDistractor(GetSenderRef());
- return;
-
- removed:
- // Tell the ai that the thing is gone.
- if (!IsMulti())
- {
- //print("Removing Distractor!");
-
- aiSetDistractor(-1);
- }
- return;
-
- end
-
- # ==========================================================
-